﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="PositionTable.aspx.cs" Inherits="TsWeb.Sports.PositionTable" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
        <Scripts>
        <asp:ScriptReference Path= "~/Scripts/jquery-1.9.1.js" />
        <asp:ScriptReference Path= "~/Scripts/bootstrap.min.js"  />
        </Scripts>
        </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Label ID="LabelTitle" runat="server" Text="Reporte de Encuentros por Deporte" />
            <br />
            <br />
            <asp:DropDownList ID="ComboBoxSports" runat="server" DataTextField="Name" DataValueField="SportId"
                AutoPostBack="True" OnSelectedIndexChanged="ComboBoxSports_SelectedIndexChanged">
            </asp:DropDownList>
            <br />
            <br />
            <asp:GridView ID="GridViewPositions" runat="server" AutoGenerateColumns="false" CssClass="table table-hover table-striped">
                <Columns>
                    <asp:BoundField DataField="TeamPosition" HeaderText="Posicion" />                    
                    <asp:TemplateField HeaderText="Equipo">
                        <ItemTemplate>
                            <asp:Label ID="LabelHomeTeam" runat="server" Text='<%# Bind("Team.Name") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="Points" HeaderText="Puntaje" />
                </Columns>
            </asp:GridView>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
